<admintpl file="headerEx" />
<title>本站用户列表</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet" />
</head>

<!-- Placed js at the end of the document so the pages load faster -->
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content" >
		<!--body wrapper start-->
		<div class="wrapper">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<li class="active" >
								<a  href="{:leuu('User/Indexadmin/index')}">
									<i class="fa fa-list-ul"></i> {:L('USER_INDEXADMIN_INDEX')}
								</a>
								</li>
								<li>
								<a  href="{:leuu('User/oauthadmin/index')}">
									<i class="fa fa-list-alt"></i> {:L('USER_OAUTHADMIN_INDEX')}
								</a>
								</li>
							</ul>
						</header>
						<div class="panel-body">
							<!--<section class="panel">-->
								<!--<div class="panel-body">-->
									<!--<form class="form-horizontal" role="form" method="post" action="{:U('Indexadmin/index')}">-->
										<!--<div class="col-lg-8">-->
											<!--<div class="input-group m-bot15">-->
											<!--用户ID：-->
											<!--<input type="text" name="uid" style="width: 200px;" value="{:I('request.uid')}" placeholder="请输入用户ID">-->
											<!--关键字：-->
											<!--<input type="text" name="keyword" style="width: 200px;" value="{:I('request.keyword')}" placeholder="用户名/昵称/邮箱">-->
												 <!--<span >-->
                                                <!--<button type="submit" class="btn btn-default btn-primary"><i class="fa fa-search "></i>  </button>-->
                                              <!--</span>-->
											<!--&lt;!&ndash;<input type="submit" class="btn btn-primary" value="搜索" />&ndash;&gt;-->
											<!--<a class="btn btn-danger" href="{:U('Indexadmin/index')}"> <i class="fa fa-trash-o"></i>  </a>-->
												<!--</div>-->
										<!--</div>-->
									<!--</form>-->
								<!--</div>-->
							<!--</section>-->
							<section class="panel">
								<div class="panel-body">
									<form class="form-inline" role="form" method="post" action="{:U('User/index')}">
										<div class="form-group">
											<label class="sr-only" for="uid">用户ID：</label>
											<input type="text" name="uid"  id="uid" class="form-control"  value="{:I('request.uid')}" placeholder="请输入用户ID">
										</div>
										<div class="form-group">
											<label class="sr-only" for="keyword">关键字：</label>
											<input class="form-control" type="text" name="keyword" id="keyword"  value="{:I('request.keyword')}" placeholder="用户名/昵称/邮箱">
										</div>
										<button type="submit" class="btn btn-primary"><i class="fa fa-search "></i></button>
										<a class="btn btn-danger" href="{:U('Indexadmin/index')}"> <i class="fa fa-trash-o"></i>  </a>
									</form>

								</div>
							</section>
							<section id="no-more-tables">
								<table class="table table-bordered table-striped table-hover table-condensed cf">
									<thead class="cf">
									<tr>
										<th align="center">ID</th>
										<th>{:L('USERNAME')}</th>
										<th>{:L('NICENAME')}</th>
										<th>{:L('AVATAR')}</th>
										<th>{:L('EMAIL')}</th>
										<th>{:L('REGISTRATION_TIME')}</th>
										<th>{:L('LAST_LOGIN_TIME')}</th>
										<th>{:L('LAST_LOGIN_IP')}</th>
										<th>{:L('STATUS')}</th>
										<th align="center">{:L('ACTIONS')}</th>
									</tr>
									</thead>
									<tbody>
									<php>$user_statuses=array("0"=>L('USER_STATUS_BLOCKED'),"1"=>L('USER_STATUS_ACTIVATED'),"2"=>L('USER_STATUS_UNVERIFIED'));</php>
									<volist name="list" id="vo" empty="没有找到符合条件的数据！">
										<tr>
											<td align="center">{$vo.id}</td>
											<td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:L('THIRD_PARTY_USER'))}</td>
											<td>{$vo['user_nicename']?$vo['user_nicename']:L('NOT_FILLED')}</td>
											<td><img width="25" height="25" src="{:sp_get_image_preview_url($vo['avatar'])}" /> </td>
											<td>{$vo.user_email}</td>
											<td>{$vo.create_time}</td>
											<td>{$vo.last_login_time}</td>
											<td>{$vo.last_login_ip}</td>
											<td>{$user_statuses[$vo['user_status']]}</td>
											<td align="center">
												<neq name="vo.id" value="1">
													<a href="{:U('indexadmin/ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:L('BLOCK_USER_CONFIRM_MESSAGE')}">{:L('BLOCK_USER')}</a>|
													<a href="{:U('indexadmin/cancelban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:L('ACTIVATE_USER_CONFIRM_MESSAGE')}">{:L('ACTIVATE_USER')}</a>|
													<a href="{:U('indexadmin/edit',array('id'=>$vo['id']))}" >{:L('EDIT_USER')}</a>
													<else/>
													<a style="color: #ccc;">{:L('BLOCK_USER')}</a>|
													<a style="color: #ccc;">{:L('ACTIVATE_USER')}</a>
													<a href="{:U('indexadmin/edit',array('id'=>$vo['id']))}" >{:L('EDIT_USER')}</a>
												</neq>
											</td>
										</tr>
									</volist>
									</tbody>
								</table>
							</section>
							<div class="col-md-12 text-center clearfix">
								{$page}
							</div>
						</div>
					</section>
				</div>
			</div>
		</div>

	</div>
	</div>
	</div>
	<!--body wrapper end-->

	<!--footer section start-->
	<footer>
		<admintpl file="copyright" />
	</footer>
	<!--footer section end-->

	</div>
	<!-- main content end-->
</section>

<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>

<!--common scripts for all pages-->
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>

</body>
</html>